package com.poc.train.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 
 * @author Andy
 *
 */
@Table(name = "POC_USER")
@Entity
public class PocUser {

	@Id
	@PropertyDef(label = "用户ID")
	@Column(name = "USER_ID", length = 38)
	private String userId;

	@PropertyDef(label = "用户名")
	@Column(name = "USER_NAME", length = 50)
	private String userName;

	@PropertyDef(label = "用户年纪")
	@Column(name = "AGE")
	private int age;

	@PropertyDef(label = "生日")
	@Column(name = "BIRTHDAY")
	private Date birthday;

	@PropertyDef(label = "居住地")
	@Column(name = "LOCATION", length = 100)
	private String location;
	
	@PropertyDef(label = "所属岗位")
	@Column(name = "POSITION_ID", length = 38)
	private String positionId;
	
	@PropertyDef(label = "所属部门")
	@Column(name = "DEPT_ID", length = 38)
	private String deptId;

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getPositionId() {
		return positionId;
	}

	public void setPositionId(String positionId) {
		this.positionId = positionId;
	}

}
